home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / PROGRAMR / ATOOLBAR.ZIP / DEMOTOOL.RC < prev    next >
Text File  |  1993-04-06  |  3KB  |  119 lines

  1.  
  2. /*
  3.     TOOLDEMO.RC -- resource script file defining Tool Bar
  4.     control. This is a part of TOOLDEMO project - demonstration
  5.         of ESTOOLS.DLL
  6.     Copyright (C) Eugene Sokolov 1992-1993, (516)632-7892,
  7.     esokolov@sbchm1.chem.sunysb.edu
  8.  
  9.     You can freely copy, change or redistribute this file as long
  10.     as this notice remains intact.
  11. */
  12.  
  13.  
  14. #include "esdefs.h"
  15.  
  16. /* Bitmaps placed on top of TB buttons */ 
  17. BMP1 BITMAP "bmp1.bmp"
  18. BMP2 BITMAP "bmp2.bmp"
  19. BMP3 BITMAP "bmp3.bmp"
  20. BMP4 BITMAP "bmp4.bmp"
  21. BMP5 BITMAP "bmp5.bmp"
  22.  
  23. /* Application icon */
  24. TBICON ICON "tbdemo.ico"
  25.  
  26. /*Tool Bar window caption */
  27. STRINGTABLE
  28. BEGIN
  29.     NAME1, "ES ToolBar"
  30. END
  31.  
  32. /* Script for the Tool Bar itself */
  33. TOOLBAR RCDATA
  34. BEGIN
  35.    TB_RESOURCE_VERSION,         /* Resource version, new to 1.01 !!! ,
  36.                       old resources will not work !!! */
  37.    NAME1,               /* Tool Bar name */
  38.    TBS_CHILD | TBS_MOVABLE | TBS_BORDER | TBS_VISIBLE,  /* Tool Bar style */
  39.             /* ^^^^^^^^^^^ -- default, included for reference only */
  40.    40, 32,            /* button size width, height */
  41.    3,                /* border size -- ignored if no
  42.                       TBS_BORDER style specified*/
  43.    5,                 /* # of buttons in the horizontal line */
  44.    5,                 /* total # of controls */
  45.    BMP1, ID_CMD1, TBB_DISABLED,    /* controls (buttons) in the form:
  46.                     Bitmap ID, Button ID
  47.                     (wParam in WM_COMMAND message),
  48.                     Button style (see description of styles
  49.                                         in estools.h
  50.                    */
  51.    BMP2, ID_CMD2, TBB_AUTO2STATE | TBB_PRESSED,
  52.    BMP3, ID_CMD3, TBB_STANDARD,
  53.    BMP4, ID_CMD4, TBB_STANDARD,
  54.    BMP5, ID_CMD5, TBB_2STATE,
  55.    0                             /* not necessary, but recommended for future
  56.                    compatibility
  57.                     */
  58. END
  59.  
  60. /* Application menu */
  61. TBMENU MENU 
  62. BEGIN
  63.     POPUP "&Buttons"
  64.     BEGIN
  65.         POPUP "&1"
  66.         BEGIN
  67.             MENUITEM "&Disabled", 1100, CHECKED
  68.             MENUITEM "&Auto 2 state", 1101
  69.             MENUITEM "&2 State", 1102
  70.         END
  71.  
  72.         POPUP "&2"
  73.         BEGIN
  74.             MENUITEM "&Disabled", 1200
  75.             MENUITEM "&Auto 2 state", 1201, CHECKED
  76.             MENUITEM "&2 State", 1202
  77.         END
  78.  
  79.         POPUP "&3"
  80.         BEGIN
  81.             MENUITEM "&Disabled", 1300
  82.             MENUITEM "&Auto 2 state", 1301
  83.             MENUITEM "&2 State", 1302
  84.         END
  85.  
  86.         POPUP "&4"
  87.         BEGIN
  88.             MENUITEM "&Disabled", 1400
  89.             MENUITEM "&Auto 2 state", 1401
  90.             MENUITEM "&2 State", 1402
  91.         END
  92.  
  93.         POPUP "&5"
  94.         BEGIN
  95.             MENUITEM "&Disabled", 1500
  96.             MENUITEM "&Auto 2 state", 1501
  97.             MENUITEM "&2 State", 1502, CHECKED
  98.         END
  99.  
  100.     END
  101.  
  102.     POPUP "&Tool Bar"
  103.     BEGIN
  104.         POPUP "&Buttons Per Row"
  105.         BEGIN
  106.             MENUITEM "&1", 2001
  107.             MENUITEM "&2", 2002
  108.             MENUITEM "&3", 2003
  109.             MENUITEM "&4", 2004
  110.             MENUITEM "&5", 2005
  111.         END
  112.  
  113.         MENUITEM "&TBS_Movable (or TBS_Fixed)", 2007, CHECKED
  114.         MENUITEM "&TBS_Border", 2008, CHECKED
  115.     END
  116.  
  117. END
  118.  
  119.